
<?php
use yii\widgets\ActiveForm;
?>

<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
    <h2>商品添加页面</h2>


    <div class="form-group">
        <label for="Goods_name">商品名称</label>
        <input type="text" class="form-control" id="goods_name" name="goods_name" placeholder="请输入商品名称">
    </div>
    <?= $form->field($model, 'imageFile')->fileInput() ?>
    <div class="form-group">
        <label for="Goods_price">价格</label>
        <input type="text" class="form-control" id="Goods_price" name="goods_price" placeholder="请输入价格">
    </div>


    <button>Submit</button>

<?php ActiveForm::end() ?>

